home *** CD-ROM | disk | FTP | other *** search
- Path: news.bridge.net!news
- From: David Byrden <100101.2547@compuserve.com>
- Newsgroups: comp.lang.c++
- Subject: Re: Callbacks using member functions
- Date: 17 Jan 1996 00:38:31 GMT
- Organization: self-employed
- Message-ID: <4dhge7$u9c@news.bridge.net>
- References: <4dgkke$8mf@knot.queensu.ca>
- NNTP-Posting-Host: ppp-mia2-81.bridge.net
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 1.1N (Windows; I; 16bit)
-
-
- Wintermute; (Wintermute?)
-
- Let's think about this. You will give to the Motif system the addresses
- of functions in your code. You want it to somehow find not only
- a function, but a particular object, when it makes the call.
-
- But Motif will not be HOLDING any information about the identity of
- the object, unless you can somehow encode that in the function address
- itself. For each object, a unique function.
-
- Since your program may dynamically create and destroy any number of your
- target objects, this implies that you need to dynamically create and
- destroy functions to associate with them, i.e. modify object code at
- runtime. Alas, you can't.
-
-
- David
-
-
-
-